package com.olap.starter.controller.admin;


import com.olap.starter.service.OnlineDictDataServices;
import com.olap.starter.core.base.BaseController;
import com.olap.starter.core.response.Result;
import com.olap.starter.pojo.OnlineDictData;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 字典数据表 前端控制器
 * </p>
 *
 * @author WBG
 * @since 2022-11-28
 */
@RestController
@AllArgsConstructor
@RequestMapping("/online/sysDictData")
public class OnlineDictDataController extends BaseController<OnlineDictData, OnlineDictDataServices> {


    @GetMapping("/initDist")
    public Result initDist() {
        return getService().initDist();
    }

    @GetMapping("/listOnline")
    public Result listOnline() {
        return getService().listOnline();
    }

    @GetMapping("/listPermi")
    public Result<List<String>> listPermi() {
        return getService().listPermi();
    }

}
